Objects Reference

mesh::compute_normals

Prototype

void compute_normals(int flag=31)

Parameters

Parameter Type Description
flag int bit flag defining what should be computed:
bit 1: implode vertices (weld)
bit 2: face and edge normals
bit 3: vert normals
bit 4: bounding box 
bit 5: edges array

Return Value

None

Remarks

This function computes several mesh variables, for example, face normals, vertex normals, edge normals, face connectivity and bounding box.
Use the flag parameter to do a partial and faster computation.